'''
Created on Apr 29, 2010

@author: darkelf
'''
from dml.dml_parser import DMLParser
import sys
from builder import dbuilder
if len(sys.argv) < 3:
    print "Usage: danzar.py {path to dml file} {path to ready html}"
else:
    print "Initialize DML Parser..."
    dml_parser = DMLParser()
    print "Parse DML file..."
    html = dml_parser.parse_dml_file(sys.argv[1])
    print "Build ready page..."
    dbuilder.build_page(html, sys.argv[2])
    print "Done." 